package com.xxa.github.wxlogin;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @program: ps6-mall-preparation-lesson
 * @author: xlk
 * @description:
 * @create: 2024-09-22 19:43
 *
 * {"access_token":"84_MjeZJlsoUMTrrEpLavew75qcd1CAGuyKXIqUY0B2AT3nRhI0qXsggML_oo3Z89rHtp3mEokM_2ZxBkMfwvYdJ7GTNm1gs4viqVjf300RsLbFvvaDAQ_qj4oxXuEOTPdAFAYDZ","expires_in":7200}
 *
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class WXLoginResponse {

    private String access_token = "";
    private Long expires_in;


//    public static void main(String[] args) {
//
//        String a= "{\"access_token\":\"84_MjeZJlsoUMTrrEpLavew75qcd1CAGuyKXIqUY0B2AT3nRhI0qXsggML_oo3Z89rHtp3mEokM_2ZxBkMfwvYdJ7GTNm1gs4viqVjf300RsLbFvvaDAQ_qj4oxXuEOTPdAFAYDZ\",\"expires_in\":7200}";
//
//        WXLoginResponse wxLoginResponse = JSON.parseObject(a, WXLoginResponse.class);
//        String accessToken = wxLoginResponse.getAccess_token();
//        Long expiresIn = wxLoginResponse.getExpires_in();
//
//        System.out.println("accessToken = " + accessToken);
//        System.out.println("expiresIn = " + expiresIn);
//
//    }
}